package cn.icatw.gulimall.order.feign;

import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author icatw
 * @date 2022/3/27
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 被sku spu信息id
     *
     * @param skuId sku id
     * @return {@link R}
     */
    @GetMapping("product/spuinfo/skuId/{skuId}")
    R getSpuInfoBySkuId(@PathVariable Long skuId);
}
